package com.gavin.consume.consume.controller;

import com.gavin.consume.consume.service.HelloRemote;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Gavin
 * Description:
 * Date: 2019/1/16 Time: 12:46
 * Zhan Hong Copyright (c) 2018 All Rights Reserved.
 **/
@RestController
public class ConsumeController {
    @Autowired
    private HelloRemote helloRemote;

    @RequestMapping("/hello/{name}")
    public String hello2(@PathVariable("name") String name) {
        return helloRemote.hello2(name);
    }

    @RequestMapping("/hello1/{name}")
    public String hello1(@PathVariable("name") String name) {
        return helloRemote.hello1(name);
    }
}
